home *** CD-ROM | disk | FTP | other *** search
- Path: newsfeed.internetmci.com!xmission!news
- From: tknarr@xmission.com ( Todd Knarr )
- Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
- Subject: Re: Undefined behavior? on type conversion, was: Re: Hungarian notation
- Date: 7 Feb 1996 03:43:44 GMT
- Organization: Chaos Central
- Message-ID: <4f975g$g18@news.xmission.com>
- References: <30C40F77.53B5@swsbbs.com> <4d2ok0$69s@beach.and.nl> <4er2qo$h2s@galaxy.ucr.edu> <31118641.6802368@nntp.ix.netcom.com> <4eurpq$b75@news.xmission.com> <31137427.133220928@nntp.ix.netcom.com>
- Reply-To: tknarr@xmission.com ( Todd Knarr )
- NNTP-Posting-Host: slc78.xmission.com
- X-Newsreader: IBM NewsReader/2 v1.2
-
- In <31137427.133220928@nntp.ix.netcom.com>, miker3@ix.netcom.com (Mike Rubenstein) writes:
- >No, I can't tell that you read the standard conservatively. You seem
- >to be adding things that just aren't there. You're saying that
-
- The thing is, I don't recall anything in the standard where "result"
- precludes side-effects. So, I don't assume there is such a prohibition.
- I may be wrong, but if I am I probably won't break code because of it.
-
- >The standard does not say that a machine must have the ability to do
- >multiplication either. That doesn't mean that an implemenation can
- >simply give an exception if you do a multiplication -- it must handle
- >it in software since the standard requires a C implementation be able
- >to do multiplication.
-
- Except that it does require multiplication to be done, and it does
- leave the results of things like overflow up to the application. Ditto
- the result of / when the second operand is 0.
-
- Unfortunately, for the last few weeks I've been doing the antithesis
- of language-lawyering. I'm going to drop this until I can dig the
- right books out from under the piles ( I hate RTFB references ).
-
- --
- Todd Knarr : tknarr@xmission.com | finger for PGP public key
- | Member, USENET Cabal
-
- Seriously, I don't want to die just yet. I don't care how
- good-looking they are, I! don't! want! to! die!"
- -- Megazone ( UF1 )
-
-